<?php include './application/views/common/header.php'; ?>
    <div class="fxnzqzr">
        <h2>债权转让</h2>
        <div class="fxninvest_list">
            <div class="fxnzqzr_title">
                <dd class="fxnzqzr_list_t">标题</dd>
                <dd class="fxnzqzr_list_m">待收金额</dd>
                <dd class="fxnzqzr_list_m">待收本金</dd>
                <dd class="fxnzqzr_list_m">本金折让率</dd>
                <dd class="fxnzqzr_list_m">折后金额</dd>
                <dd class="fxnzqzr_list_j">进度</dd>
                <dd class="fxnzqzr_list_z">状态</dd>
            </div>
            <?php foreach ($creditorList as $val){?>
                <div class="fxnzqzr_li">
                    <dd class="fxnzqzr_list_t"><a href="/borrow/creditor/<?php echo $val['id']?>.html"><?php echo $val['title'];?></a></dd>
                    <dd class="fxnzqzr_list_m"><?php echo $val['wait_account'];?></dd>
                    <dd class="fxnzqzr_list_m"><?php echo $val['account'];?></dd>
                    <dd class="fxnzqzr_list_m"><?php echo $val['discount_apr'];?>%</dd>
                    <dd class="fxnzqzr_list_m"><?php echo $val['discount_account'];?></dd>
                    <dd class="fxnzqzr_list_j"><div class="fxnzqzr_list_j2" title="<?php echo round($val['discount_yes']/$val['discount_account']*100,2);?>%"><div class="fxnzqzr_list_j_hover" style="width:<?php echo round($val['discount_yes']/$val['discount_account']*100,2);?>%;"></div></div></dd>
                    <dd class="fxnzqzr_list_z2">
                        <?php if ($val['fstatus']==2){?>
                            <span class="fxninvest_mb"><a href="/borrow/creditor/<?php echo $val['id']?>.html"><?php echo $val['discount_yes']<$val['discount_account'] ? '立即购买':'等待复审';?></a></span>
                        <?php }else{?>
                            <span class="fxninvest_mb"><a href="/borrow/creditor/<?php echo $val['id']?>.html">已完成</a></span>
                        <?php }?>
                    </dd>
                </div>
            <?php }?>
            <div class="page"><?php echo $this->pagination->create_links();?></div>
        </div>
    </div>
<?php include './application/views/common/footer.php'; ?>